package com.ruijie.acl;

import com.ruijie.foundation.bo.EntityObject;

/**
 * <p>
 * Title: 模板变量对象
 * </p>
 * <p>
 * Description: 用于数据库中的模板变量表管理
 * </p>
 * <p>
 * Copyright: Copyright (c) 2008
 * </p>
 * <p>
 * Company: Ruijie Co., Ltd.
 * </p>
 * <p>
 * Create Time: 2009-09-14
 * </p>
 * <p>
 * Update Time:
 * </p>
 * <p>
 * Updater:
 * </p>
 * <p>
 * Update Comments:
 * </p>
 *@author ASAI
 */
public class Variable extends EntityObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8388252902623022604L;
	private Template template;
	private String name;
	private String varTitle;
	private String varType;
	private String defaultValue;
	private String filledRule;
	
	private String value;
	
	public Variable(){
	}

	public String getValue() {
		if(this.value==null){
			this.value=this.defaultValue;
		}
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}


	public Template getTemplate() {
		return template;
	}

	public void setTemplate(Template template) {
		this.template = template;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVarTitle() {
		return this.varTitle;
	}

	public void setVarTitle(String varTitle) {
		this.varTitle = varTitle;
	}

	public String getVarType() {
		return this.varType;
	}

	public void setVarType(String varType) {
		this.varType = varType;
	}

	public String getDefaultValue() {
		return this.defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public String getFilledRule() {
		return this.filledRule;
	}

	public void setFilledRule(String filledRule) {
		this.filledRule = filledRule;
	}

}
